Skip to content

feat(android,contract,gateway,cli): mark custom Android models in the catalog, and document where models come from - #230

Merged
V3RON merged 3 commits into
mainfrom
task/215
Oct 2, 2026
Merged

V3RON merged 3 commits into
mainfrom
task/215

Conversation

@V3RON

@V3RON V3RON commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Closes #215

The catalog now marks Android models that come from Android Studio's devices.xml with an optional customModels list. The CLI docs say where Android models come from.

  • DeviceProfileRegistry.catalog() marks a listed model custom when the profile its name resolves to has kind properties. The mark and the resolution use the same matcher, so a devices.xml name that a built-in profile already answers to is listed but not marked.
  • The Android driver passes the list through and leaves it out when it is empty. iOS never sends it.
  • The schema bounds the list and each name. The daemon fits its own answer to those bounds, so one long custom name loses its mark instead of breaking the whole catalog.
  • On a gateway, a model is custom when any worker that lists it marks it. A name a worker marks but does not list is dropped. The worker view keeps that worker's own list.
  • simlock catalog prints (custom) after a custom model.
  • Docs: CLI.md (a new "Where Android models come from" section), HTTP-API.md, CLIENT.md, ARCHITECTURE.md.

Done when

  • docs/CLI.md says where Android models come from, which source wins on a name clash, that a newer built-in model needs newer cmdline-tools, and how to add a custom profile. Checked by reading the new section.
  • simlock catalog --json marks custom Android models, and built-in and iOS models have no mark. Tested in device-profile-source.test.ts, the Android and iOS index.test.ts, and e2e gateway-fleet.test.ts.
  • The human view shows the same mark. Tested in cli/index.test.ts and in the e2e test.
  • On a gateway, the worker list shows the mark per worker. This is in worker list --json (e2e test). The human worker list prints no models, so there is nothing to mark there.
  • An unreadable or malformed devices.xml still yields the built-in models. Tested in device-profile-source.test.ts and Android index.test.ts.
  • pnpm check is green.

Review

Spec review: 8 findings, 2 fixed. Code review: 1 finding, 1 fixed.

Rejected:

  • The human worker list does not show the mark. That view prints no models, and the spec asks for the mark only "where it prints a worker's models". The mark is in --json, and the docs point there.
  • docs/internal/ARCHITECTURE.md was edited without being asked. The documentation rules keep maintainer docs in step with the code, and its catalog-union paragraph would otherwise be incomplete.
  • fitPlatformCatalog was not asked for. Without it, a custom name over the schema's name bound fails the whole catalog.get answer, which the code review confirmed. spec needs: a line on what the daemon does with a custom name that is over the bound.
  • The customModels limit is 4096, not "the same limit as models". models has no limit in the schema, so 4096 is the existing per-model list bound. spec needs: the limit stated as a number.

Written by an agent.

@V3RON
V3RON merged commit f2003f3 into main Oct 2, 2026
14 checks passed
@V3RON
V3RON deleted the task/215 branch November 6, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document where Android device models come from, and mark custom ones in the catalog

1 participant